<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-1.12.1.min.js" type="text/javascript" charset="utf-8"></script>
		<style>
			
			button{
				display: inline-block;
				margin-top: 50px;	
				/* border-radius: ; */
			}
		</style>
		
		<script>
			
			$(function(){
				
				$("#btn1").click(function(){
					
					$("#bg").css('backgroundColor',"#666");
					
					$("#bg").css({
						'border':'solid 1px red',
						'border-radius':'10px'
					})
				})
				
				$("#btn2").click(function(){
					alert($("#bg").css('backgroundColor'));
				})
				
			})
			
		</script>
	</head>
	<body >
		<div id="bg" class="ccs">
			content  content  content  content  content  content  content  
			
		</div>
		
		<button id="btn1">添加样式</button>
		<button id="btn2">获取样式值</button>
		
		
		
	</body>
</html>
